<?php
namespace app\model;


class Category extends Common
{
    const CATEGORY_STATUS_ACTIVE = 1;
    const CATEGORY_STATUS_INACTIVE = -1;
    public function articles()
    {
        return $this->belongsToMany(Article::class, 'article_category','article_id','category_id');
    }
}